package com.bwie.controller;

import com.bwie.service.TbBrandService;
import com.bwie.utils.R;
import com.bwie.vo.PageInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 军哥
 * @version 1.0
 * @description: TODO
 * @date 2025/7/21 15:25
 */

@RestController
@RequestMapping(value = "/prod/brand")
public class TbBrandController {

    @Autowired
    TbBrandService tbBrandService;

    /**
     * @description 分页获取品牌列表
     * @params [pageInfoVo]
     * @return com.bwie.utils.R
     * @author 军哥
     * @date 2025/7/21 15:27
     */
    @PostMapping(value = "/getBrandList")
    public R getBrandList(@RequestBody PageInfoVo pageInfoVo) {
        return tbBrandService.getBrandList(pageInfoVo);
    }
    @PostMapping("/getBrandAll")
    public R getBrandAll() {
        return tbBrandService.getBrandAll();
    }
}
